<!--
 * @Author: zi.yang
 * @Date: 2021-03-12 23:51:45
 * @LastEditors: zi.yang
 * @LastEditTime: 2021-03-13 00:13:14
 * @Description: In User Settings Edit
 * @FilePath: \vue-music\src\components\state3\test-lief.vue
-->
<template>
  <div></div>
</template>

<script>
import {
  onMounted, onUnmounted, onUpdated,
} from '@vue/composition-api';

export default {
  name: 'test-lief',
  setup() {
    // 这些生命周期钩子，必须在setup中使用
    onMounted(() => {
      console.log('mounted');
    });
    onUpdated(() => {
      console.log('update');
    });
    onUnmounted(() => {
      console.log('unmouted');
    });
  },
};

</script>

<style scoped></style>
